package github.kawaiior.yuanchuxiuzhen.common.item.misc;

import github.kawaiior.yuanchuxiuzhen.core.init.itemgroup.YcxzGroup;
import net.minecraft.item.Item;

public class SplinterItem extends Item {
    private final int level;

    public SplinterItem(int level) {
        super(new Properties().group(YcxzGroup.YCXZ_GROUP));
        this.level = level;
    }

    public int getLevel() {
        return level;
    }

//    public static int getCountByLevel(int level){
//        return level != 1 ? level >= 6 ? level >= 8 ? level < 9 ? 8 : 10 : 6 : 4 : 3;
//    }

    public static int getCountByLevel(int level){
        return level >= 2 ? level >= 6 ? level >= 8 ? level >= 9 ? 10 : 8 : 6 : 4 : 3;
    }
}
